#!/usr/bin/python
#-*- coding: utf-8 -*-

import os

class FileLoader:
    def __init__(self):
        pass

    def load(self, path):
        files = []
        if os.path.isdir(path):
            parents = os.listdir(path)
            for parent in parents:
                child = os.path.join(path,parent)
                childs = self.load(child)
                for _child in childs:
                    files.append(_child)
        elif path.lower().endswith('.exe'):
            files.append(path)
        return files

